package lab02.Test25;

import java.util.Scanner;

public class Test25 {
    public static void main(String[] args) {

        try {
            Scanner sc = new Scanner(System.in);
            System.out.println("请输入第一个数：");
            double num1 = sc.nextDouble();
            System.out.println("请输入第二个数：");
            double num2 = sc.nextDouble();

            double num3 = num1/num2;
            System.out.println(num3);

        }catch (ArithmeticException e){
            System.out.println("0不能作为除数");
            e.printStackTrace();
        }

    }
}
